
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <link href="css/mui.min.css" rel="stylesheet" />
  </head>
  <body>
<form id="pay_form" name="pay_form" action="" method="post">
<input type="hidden" name="BankCode" id="BankCode" value=88988888>
<input type="hidden" name="BuzType" id="BuzType" value=01>
<input type="hidden" name="CallBackUrl" id="CallBackUrl" value=http://localhost:8089/Gnetpg_Pay_Gateway_By_V36_Vendor_Java_UTF-8/Dev/Process/ReceiveFrontResultProcess.jsp>
<input type="hidden" name="CurrCode" id="CurrCode" value=CNY>
<input type="hidden" name="LangType" id="LangType" value=UTF-8>
<input type="hidden" name="MerId" id="MerId" value=198>
<input type="hidden" name="OrderAmount" id="OrderAmount" value=0.01>
<input type="hidden" name="OrderNo" id="OrderNo" value=20180205181359>
<input type="hidden" name="OrderType" id="OrderType" value=>
<input type="hidden" name="Reserved01" id="Reserved01" value="","price":"0.01","quantity":"3"}|PayType=WXPay.jsPay|SpbillCreateIp=127.0.0.1|TimeStart=20180205181359|TimeExpire=|SubOpenId=oLwEZwR6WyjLNwdhgG9aAWyVhcao>
<input type="hidden" name="Reserved02" id="Reserved02" value=>
<input type="hidden" name="SignMsg" id="SignMsg" value=183d7851d36a8fcb9d98c5f6c43625e2>
<!-- <input type="submit" name="" value="submit"> -->
</form>
<script src="https://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
<script language="javascript">
    document.addEventListener('UniAppJSBridgeReady', function() {
        uni.postMessage({
            data: {
                action: 'message'
            }
        });
        uni.getEnv(function(res) {
            console.log('当前环境：' + JSON.stringify(res));
        });
    });
  function getQueryVariable(variable)
{
       var query = window.location.search.substring(1);
       var vars = query.split("&");
       for (var i=0;i<vars.length;i++) {
               var pair = vars[i].split("=");
               if(pair[0] == variable){return pair[1];}
       }
       return(false);
}



 var data = eval("("+getQueryVariable("url")+")")
//var data = JSON.parse(getQueryVariable("url"))
console.log(+getQueryVariable("MerId"))
console.log(getQueryVariable('CallBackUrl'))
console.log(data.a)
//   console.log(data)
  // console.log($('#BankCode').val(data.BankCode)
   $('#BankCode').val(getQueryVariable('BankCode'))
   $('#MerId').val(getQueryVariable('MerId'))
   $('#OrderNo').val(getQueryVariable('OrderNo'))
   $('#OrderAmount').val(getQueryVariable('OrderAmount'))
   $('#CurrCode').val(getQueryVariable('CurrCode'))
   $('#CallBackUrl').val(getQueryVariable('CallBackUrl'))
   $('#BuzType').val(getQueryVariable('BuzType'))
   $('#LangType').val(getQueryVariable('LangType'))
   $('#Reserved01').val(getQueryVariable('Reserved01'))
   $('#Reserved02').val(getQueryVariable('Reserved02'))
   $('#SignMsg').val(getQueryVariable('SignMsg'))
   $('#pay_form').attr('action',getQueryVariable('payUrl'))

setTimeout(function(){
  document.pay_form.submit()
// window.onload=function(){document.pay_form.submit();}
console.log('zhi ')
//window.location.reload()
},500)


</script>
  </body>
  </html>



